package com.moore.controller;

import com.moore.bean.Candidate;
import com.moore.dto.ResponseData;
import com.moore.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/register")
public class RegisterController {
    @Autowired
    private RegisterService registerService;
    @GetMapping("/user")
    public ResponseData registerUser(Candidate candidate){
        return registerService.register(candidate);
    }
}
